package com.cc.domain;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @title: UserFactoryBean
 * @author: lbj
 * @date: 2022/5/4 10:38 下午
 * @description: TODO 类描述
 */

@Component
public class UserFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        final Person person = new Person();
        System.out.println("getObject person:"+person);
        return person;
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }
}
